home *** CD-ROM | disk | FTP | other *** search
/ World of Video / World of Video.iso / gfxprograms / 3dprograms / rayshade-4.0 / fixes / fix022 < prev    next >
Text File  |  1995-02-13  |  1KB  |  42 lines

  1. On Aug 2, Daniel Peisach wrote:
  2.  
  3. |-------------------- text of forwarded message follows --------------------|
  4.  
  5. if you specify a degenerate flame, (i.e. height zero) you get a warning
  6. and then a core dump.  this should fix it.
  7.  
  8. also, be aware that the example input files are missing arguments to the
  9. flame command.  
  10.  
  11. -dan
  12.  
  13. --------------------
  14.  
  15. *** flame.c.shipped     Tue Aug  2 12:55:52 1994
  16. --- flame.c     Tue Aug  2 12:57:19 1994
  17. ***************
  18. *** 40,45 ****
  19. --- 40,48 ----
  20.      nsurf->noshadow=TRUE;
  21.  
  22.     
  23. nob=GeomCreate((GeomRef)FlameObjCreate(size,pos,speed,nsurf),FlameMethods()
  24. );
  25. +
  26. +    if(!nob) return (Geom *) NULL; /* degenerate problem */
  27. +
  28.      nob->surf=nsurf;
  29.  
  30.      if (lightswitch)
  31.  
  32. ----------
  33. Administrivia: rayshade-users-request@cs.princeton.edu
  34. Mailing list: rayshade-users@cs.princeton.edu
  35.  
  36.  
  37. |------------------------- end of forwarded message ------------------------|
  38.  
  39. -- 
  40.         Kriton  (UUCP:     pythia!theseas!kriton!kyrimis)
  41.                 (INTERNET: kyrimis@theseas.ntua.gr)
  42.